<template>
  <div class="home">
    <div class="to_cart_container">
        <span @click="toCart()">点击跳转购物车</span>
    </div>
    <div class="list_items_container">
      <ListItems />
    </div>
  </div>
</template>

<script>
import ListItems from '../components/ListItems'


export default {
  name: 'Home',
  components: {
    ListItems
  },
  data(){
    return {

    }
  },
  computed:{

  },
  methods:{
    toCart(){
      this.$router.push('/cart')
    }
  },
  mounted(){

  }
}
</script>

<style scoped>
  .to_cart_container {
    width: 100%;
    height: 50px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid gray;
  }
  .list_items_container {
    width: 100%;
  }
</style>
